﻿/// <reference path="../GeneratedArtifacts/viewModel.js" />

myapp.AddEditRestrictionRegulation.Details_postRender = function (element, contentItem) {
    contentItem.dataBind("screen.RestrictionRegulation.Id", function (newValue) {
        contentItem.screen.details.displayName = "Regulation (" + (newValue == null ? "New" : newValue) + ")";
    });
};
myapp.AddEditRestrictionRegulation.Delete_execute = function (screen) {
    screen.RestrictionRegulation.deleteEntity();
};